package com.enbatis.mybatisplugs.component;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Date;
//@Component
public class HelloSender {
    @Autowired
    private AmqpTemplate rabbitTemplate;

    public void send() {
        System.out.println("Sender : " + 1);
        this.rabbitTemplate.convertAndSend("hello", "nice too meet you");
    }


}
